<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
List<Map<String, Object>> maplist = (List<Map<String,Object>>)request.getAttribute("maplist");
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'index.jsp' starting page</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="Content-Type" content="text/html; charset=utf8" />
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" type="text/css" href="css/demo_page.css">
	<link rel="stylesheet" type="text/css" href="css/demo_table.css">
	<link rel="stylesheet" type="text/css" href="css/jquery.dataTables.css">
	<script type="text/javascript" src="js/jquery-1.8.0.js"></script>
	<script type="text/javascript" src="js/jquery.dataTables.min.js"></script>
  </head>
  
  <body>
  <table>
    <%for(int i=0;i<maplist.size();i++){ Map<String, Object> map = maplist.get(i);%>
    	<tr><td><%=map.get("FOODID") %><td><td><%=map.get("FOODNAME") %><td><td><%=map.get("CONTENT") %><td><td><%=map.get("STATE") %><td><td><%=map.get("PIC") %><td><td><img src="uploadImage201312/<%=map.get("PIC") %>"/><td></tr>
    <% }%>
  </table>
  </body>
</html>
